package org.pocketmoney.gui.model;

import javax.swing.AbstractListModel;

import org.pocketmoney.core.RecordBank;
import org.pocketmoney.core.entities.record.Record;

public class RecordListModel extends AbstractListModel<Record>
{

	private static final long serialVersionUID = 1L;
	RecordBank bank = RecordBank.getInst();
	
	@Override
	public int getSize()
	{
		return bank.getRecordsCount();
	}

	@Override
	public Record getElementAt(int index)
	{
		return bank.getRecordByIndex(index);
	}
	
	

}
